<html>

<body>

<h1>this is a first segment JavaScript</h1>
<p>JavaScript gai HTML content</p>

<button type="getWifiScanRessult" onclick="myFunction()">getWifiScanRessssssult</button>

<button type="button" onclick="calljava()">cli for call java code</button>

<button type="button" onclick="window.wst.startFunction('hello world')">cli for call java code</button>

<p id="demo">this is a example</p>

<script>

    function myFunction() {

      var test = ["fewfew"]

      for (var i in window.wifikeyJsBridge) {
        test.push(i)
      }
      document.getElementById("demo").innerHTML = test;

    }

    function calljava() {
      var packJson = { "method": "getcltInfo", "types": [ "string" ], "args":["androidid"] };
      var wifilist = window.wifikeyJsBridge.call(JSON.stringify(packJson))
      document.getElementById("demo").innerHTML = wifilist
    }
  </script>
</body>

</html>